package com.seawaterbt.ssm.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.seawaterbt.ssm.annotation.DataSource;
import com.seawaterbt.ssm.enums.DataSourceEnum;
import com.seawaterbt.ssm.mapper.ClazzMapper;
import com.seawaterbt.ssm.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liujiahao on 2019/1/15.
 */
@Service
@DS("slave_1")
public class ClazzServiceImpl  implements ClazzService {
    @Autowired
    ClazzMapper mapper;
    public List<String> findName(String code) {
        return mapper.findName(code);
    }
}
